package com.maxmlr.music.song.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.maxmlr.music.song.entity.Song;
import com.maxmlr.music.common.base.BaseService;
import com.maxmlr.music.song.param.SongInfoParam;

/**
 * @author max
 * @version 1.0
 * @ClassName SongService
 * @Description  歌曲信息表  服务类
 * @Copyright Copyright (c) 2020: www.maxmlr.com.
 * @since 2020-06-07
 */
public interface SongService extends BaseService<Song> {

    /**
     * @param pageParam
     * @param inParam
     * @param type
     * @return
     */
    Page<SongInfoParam> listSong(Page<SongInfoParam> page, SongInfoParam inParam);

    SongInfoParam getSongInfoParam(Integer id, Integer type);

    boolean saveParam(SongInfoParam param);

    boolean updateParamById(SongInfoParam param);

    Page<SongInfoParam> listSongParam(Page<Song> page, SongInfoParam inParam, Integer type);
}
